#include "SBSeek.h"
#include "AIAgent.h"

SBSeek::SBSeek(AIAgent* __restrict agent, GameObject* __restrict target) : Behaviour(agent)
{
	m_pTarget = target;
	m_debugDrawColour = Vec3f(1,0,0);
}


Vec3f SBSeek::Update()
{
	Vec3f steering = (m_pTarget->GetPos() - m_pAgent->GetPos()).TruncateReturn(m_pAgent->GetMaxForce());
		//Vec3f steering = (desiredVel - m_pAgent->GetVel()).TruncateReturn(m_pAgent->GetMaxForce());
	
	return steering;

}

SBSeek::~SBSeek()
{

}